<div class="layui-form-item">
    <div class="layui-form-item">
        <label class="layui-form-label">{{$label}}</label>
        <div class="layui-input-block">
            <textarea id="{{$name}}" >{{$value|raw}}</textarea>
        </div>
    </div>
</div>
<!--http://tinymce.ax-z.cn/general/basic-setup.php#toolbarconfiguration-->
<script type="text/javascript" src="/X-Admin/lib/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    $(function () {
      //  debugger
        tinymce.init({
            selector: '#{{$name}}',
            language:'zh_CN',
            plugins: ['image'],
            height: 300,
            toolbar: 'undo redo | styleselect | bold italic | link image',
            images_upload_url: '/admin/NoCheckPermission/uploadFile',
        });
    })
</script>
